package com.onlinevideo.dao;

import com.onlinevideo.entity.Favorites;


import java.util.List;

public interface FavoritesDao {
    int insert(Favorites favorites);

    int delete(Long id);

    int update(Favorites favorites);

    Favorites queryById(Long id);

    Favorites queryByFavoriteName(Favorites favorites);

    Long  queryByFavoriteCount(Long userId);

    List<Favorites> queryAll();

    List<Favorites> queryUser(Long userId);
}

